package com.bjpowernode.api.serivce;

import com.bjpowernode.api.model.Recharge;

/**
 * @author 麦翔盛
 * @ClassName: RechargeService
 * @Package: com.bjpowernode.api.serivce
 * @description: 充值接口
 * @date 2022/5/31 16:06
 */
public interface RechargeService {
    /**
     * 创建新的订单
     * @param recharge 订单
     * @return
     */
    int createNewRechargeOrder(Recharge recharge);

    /**
     * 异步通知 支付结果
     * @param orderId 订单号
     * @param payAmount 订单总额
     * @param payResult 订单支付结果
     */
    void doRechargeHandler(String orderId, String payAmount, String payResult);
}
